﻿@model JuniorProject.Models.SearchModel

@{
    ViewBag.Title = "Job Details";
}

<h2>
Job Details - @Model.Title
</h2>
<br />

<fieldset>
    <legend>JobPostings</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Description)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Description)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Location)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Location)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.InsertDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.InsertDate.Month).
        @Html.DisplayFor(model => model.InsertDate.Day).
        @Html.DisplayFor(model => model.InsertDate.Year)
    </div>

</fieldset>
<p>
    @Html.ActionLink("Apply for Job", "ApplicationDetails", "Application", new { jobID=Model.ID, jobPostingID=Model.PostingID }, null) |
    @Html.ActionLink("Back to List", "Index")
</p>
